<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台创建房间的接口</title>
</head>
<body>
<label>
    房间名称：<input type="text" value="" placeholder="请填写房间的名称！" class="group_name">
    <br/>
    <button type="button" class="addGroup">
        添加
    </button>
</label>
<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript">
    $(function(){
       $('.addGroup').click(function(){
           var data         =   $('.group_name').val();
           $.post("{:url('do_group_add','',true,true)}",{group_name:data},function(data){

           });
       })
    });
</script>
</body>
</html>